﻿using System;

namespace DotNetNuke.Modules.UserDefinedTable
{


  public class EditImage : EditURL
  {


    //public EditImage()
    //{
    //  base.Load += new EventHandler(this.EditImage_Load);
    //}


    protected override void OnLoad(EventArgs e)
    {
      base.OnLoad(e);
      //base.Load += new EventHandler(this.EditImage_Load);

      if (!this.Page.IsPostBack && this.IsNotAListOfValues)
      {
        base.ctlURL.Required = this.Required;
        base.ctlURL.FileFilter = "jpg,jpeg,jpe,gif,bmp,png,swf";
        base.ctlURL.ShowLog = false;
        base.ctlURL.ShowTrack = false;
        base.ctlURL.ShowTabs = false;
        base.ctlURL.ShowUrls = true;
        base.ctlURL.ShowFiles = true;
        base.ctlURL.ShowNewWindow = false;
      }
    }




    //private void EditImage_Load(object sender, EventArgs evt)
    //{
    //  if (!this.Page.IsPostBack && this.IsNotAListOfValues)
    //  {
    //    base.ctlURL.Required = this.Required;
    //    base.ctlURL.FileFilter = "jpg,jpeg,jpe,gif,bmp,png,swf";
    //    base.ctlURL.ShowLog = false;
    //    base.ctlURL.ShowTrack = false;
    //    base.ctlURL.ShowTabs = false;
    //    base.ctlURL.ShowUrls = true;
    //    base.ctlURL.ShowFiles = true;
    //    base.ctlURL.ShowNewWindow = false;
    //  }
    //}


  }

}

